home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / extra_2 / pf215.zip / TYPE_CFG.BAT < prev    next >
DOS Batch File  |  1995-10-30  |  863b  |  23 lines

  1. @REM
  2. @REM TYPE_CFG.BAT  --  Displays the description of all Print-Format
  3. @REM                   configuration files *.CFG, *.TBL and *.DSK
  4. @REM
  5. @REM Parameters: %1:   Directory name (optional). If omitted, the current
  6. @REM                   directory is used.
  7. @REM
  8. @REM Remarks:          This file expects NO backslash at the end of a
  9. @REM                   directory name. If you specify a directory name,
  10. @REM                   that ends with a backslash (e. g. the root directory),
  11. @REM                   please append a dot to the directory name. 
  12. @REM
  13. @IF @%1==@ GOTO CURRENT_DIR
  14. @REM Named directory, not the root
  15. FOR %%F IN (%1\*.CFG) DO TYPE %%F
  16. FOR %%F IN (%1\*.TBL) DO TYPE %%F
  17. FOR %%F IN (%1\*.DSK) DO TYPE %%F
  18. GOTO END
  19. :CURRENT_DIR
  20. FOR %%F IN (*.CFG) DO TYPE %%F
  21. FOR %%F IN (*.TBL) DO TYPE %%F
  22. FOR %%F IN (*.DSK) DO TYPE %%F
  23. :END